<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
   <!--  no grade question answer example1 example2 example3 -->
   <script type="text/javascript">
	   $(function(){
		   $("#nextQuestion").click(function(){
			   if($(":radio[name=answer]:checked").length==0){
				   alert("정답을 선택하세요");
				   return;
			   }
			  // alert("answer value : "+$(":radio[name=answer]:checked").val());
			   location.href="answerCheck.do?userAnswer="+$(":radio[name=answer]:checked").val();
			});
	   });
   </script>
   [${sessionScope.mvo.grade }등급] 시험<br>
   (${requestScope.map.exNo+1}/10)번 문제<br>
  	${requestScope.map.vo.question}<br>
  	1. ${requestScope.map.vo.example1}<input type="radio" name="answer" value="${requestScope.map.vo.example1}"><br>
  	2. ${requestScope.map.vo.example2}<input type="radio" name="answer" value="${requestScope.map.vo.example2}"><br>
  	3. ${requestScope.map.vo.example3}<input type="radio" name="answer" value="${requestScope.map.vo.example3}"><br>
  	4. ${requestScope.map.vo.example4}<input type="radio" name="answer" value="${requestScope.map.vo.example4}"><br>
  	 <input type="button" value="다음문제" id="nextQuestion">